<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改剂量计激活、消记录')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-realdata-edit" th:object="${rpRealdata}">
            <input name="ID" th:field="*{ID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">主键：</label>
                <div class="col-sm-8">
                    <input name="rpId" th:field="*{rpId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">厂房编码：</label>
                <div class="col-sm-8">
                    <input name="rpPlant" th:field="*{rpPlant}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计编号：</label>
                <div class="col-sm-8">
                    <input name="rpCode" th:field="*{rpCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计IP：</label>
                <div class="col-sm-8">
                    <input name="rpIp" th:field="*{rpIp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计编码：</label>
                <div class="col-sm-8">
                    <input name="rpDosimeter" th:field="*{rpDosimeter}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="rpTriggerDate" th:value="${#dates.format(rpRealdata.rpTriggerDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="rpStatus" value="">
                        <label th:for="rpStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量零级报警值：</label>
                <div class="col-sm-8">
                    <input name="rpDoseLevel0" th:field="*{rpDoseLevel0}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">超时报警阈值：</label>
                <div class="col-sm-8">
                    <input name="rpCtrTime" th:field="*{rpCtrTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量率一级报警值：</label>
                <div class="col-sm-8">
                    <input name="rpRateLevel1" th:field="*{rpRateLevel1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量率二级报警值：</label>
                <div class="col-sm-8">
                    <input name="rpRateLevel2" th:field="*{rpRateLevel2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">超时报警次数：</label>
                <div class="col-sm-8">
                    <input name="rpTimeout" th:field="*{rpTimeout}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">剂量计电量预警值：</label>
                <div class="col-sm-8">
                    <input name="rpPowerConst" th:field="*{rpPowerConst}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">适配器激活ID：</label>
                <div class="col-sm-8">
                    <input name="rpRlid" th:field="*{rpRlid}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/realdata";
        $("#form-realdata-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-realdata-edit').serialize());
            }
        }

        $("input[name='rpTriggerDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>